<template>
	<view class="merchantTemplate">
		<view class="merchantInfoBox">
			<image class="merchantInfoBox_logo" src="../../static/images/no_product.png"></image>
			<view class="merchantInfoBox_info">
				<view class="TitleBox">
					<text class="title">摩谊电器旗舰店 </text>
					<text class="selfSupport">自营</text>
				</view>
				<view class="MerchantInformation">
					<text>已拼200万+件</text>
					<view class="scoreBox">
						<view class="scoreBg">
							<view class="score"></view>
						</view>
					</view>
					<text>粉丝:400+</text>
				</view>
			</view>
			<button>进店</button>
		</view>
		<view class="safeguardBox">
			<image class="safeguardIcon" src="../../../../static/images/merchantTemplate_bz.png"></image>
			<text class="safeguardTitle">店铺保障</text>
			<image class="safeguardRight" src="../../../../static/images/shq_right.png"></image>
			<text class="safeguardInfo">运货包运费 · 极速退款 · 7天无理由退货</text>
		</view>
		<view class="recommendBox">
			<view class="recommendTop">
				<text>店铺推荐</text>
				<image src="../../../../static/images/shq_right.png"></image>
				<text class="tip">查看全部</text>
			</view>
			<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll">
				<view class="commodityItem">
					<image src="../../static/images/no_product.png"></image>
					<text>XXXXX商品名称xxxx</text>
					<priceFormat class="priceFormat" :price="222" weight intSize="32" floatSize="20" labelSize="20"></priceFormat>
				</view>
				<view class="commodityItem">
					<image src="../../static/images/no_product.png"></image>
					<text>XXXXX商品名称xxxx</text>
					<priceFormat class="priceFormat" :price="222" weight intSize="32" floatSize="20" labelSize="20"></priceFormat>
				</view>
				<view class="commodityItem">
					<image src="../../static/images/no_product.png"></image>
					<text>XXXXX商品名称xxx</text>
					<priceFormat class="priceFormat" :price="222" weight intSize="32" floatSize="20" labelSize="20"></priceFormat>
				</view>
				<view class="commodityItem">
					<image src="../../static/images/no_product.png"></image>
					<text>XXXXX商品名称xxxx</text>
					<priceFormat class="priceFormat" :price="222" weight intSize="32" floatSize="20" labelSize="20"></priceFormat>
				</view>
				<view class="commodityItem">
					<image src="../../static/images/no_product.png"></image>
					<text>XXXXX商品名称</text>
					<priceFormat class="priceFormat" :price="222" weight intSize="32" floatSize="20" labelSize="20"></priceFormat>
				</view>
				<view class="commodityItem">
					<image src="../../static/images/no_product.png"></image>
					<text>XXXXX商品名称</text>
					<priceFormat class="priceFormat" :price="222" weight intSize="32" floatSize="20" labelSize="20"></priceFormat>
				</view>
			</scroll-view>
		</view>
		
	</view>
</template>

<script>
	import priceFormat from '@/components/priceFormat'
	export default {
		components: {priceFormat},
		data(){
			return{
			}
		}
	}
</script>

<style  scoped lang="scss">
	.merchantTemplate{
		width: 100%;
		height: auto;
		background-color: #fff;
		padding:10px;
		float: left;
		margin-top: 10px;
		margin-bottom: 10px;
		.merchantInfoBox{
			width: 100%;
			height: 70px;
			button{
				width: 65px;
				height: 32px;
				line-height: 30px;
				border: 1px solid rgb(158,158,158);
				border-radius:5px;
				text-align: center;
				float: right;
				font-size: 15px;
				margin-top: 20px;
			}
			.merchantInfoBox_logo{
				width: 60px;
				height: 60px;
				float: left;
				margin-top: 5px;
			}
			.merchantInfoBox_info{
				width: calc(80% - 70px);
				float: left;
				height: 60px;
				margin-top: 5px;
				margin-left: 10px;
				
				.MerchantInformation{
					width: 100%;
					height: 30px;
					float: left;
					text{
						width: auto;
						float: left;
						height: 30px;
						line-height: 30px;
						font-size: 14px;
						color: #818181;
						float: left;
					}
					.scoreBox{
						width: 75px;
						height: 12px;
						float: left;
						margin: 9px 5px 0px 5px;
						border-left: 0.5rpx solid #000;
						border-right: 0.5rpx solid #000;
						.scoreBg{
							width: 65px;
							float: left;
							margin-left: 5px;
							height: 12px;
							background-image:url('../../../columnGoods/images/star2.png');
							z-index: 2;
							background-size: 65px 12px;
							background-repeat: no-repeat;
							.score{
								width: 90%;
								float: left;
								height: 100%;
								background: url('../../../columnGoods/images/star_active.png');
								background-size: 65px 12px;
								background-repeat: no-repeat;
							}
						}
					}
					
				}
				.TitleBox{
					width: 100%;
					height: 30px;
					float: left;
					.title{
						width: auto;
						max-width: 80%;
						height: 30px;
						float: left;
						line-height: 30px;
						font-size: 18px;
						font-weight: bold;
					}
					.selfSupport{
						width: auto;
						height: 20px;
						line-height: 20px;
						margin-left: 5px;
						padding: 0px 5px;
						font-size: 13px;
						margin-top: 5px;
						float: left;
						font-weight: 400;
						background-color: rgb(61,49,39);
						color:#f9e9d0;
						border-radius: 5px;
					}
				}
				
					
			}
		}
		.safeguardBox{
			width: 100%;
			height: 40px;
			float: left;
			margin-top: 5px;
			background: url('../../../../static/images/50063bdc47ab413491cfbc13fe1fa5bb.png');
			background-repeat: no-repeat;
			background-size: 100% 100%;
			.safeguardIcon{
				width: 18px;
				height: 18px;
				float: left;
				margin-left: 11px;
				margin-top: 11px;
			}
			.safeguardTitle{
				width: auto;
				float: left;
				height: 40px;
				line-height: 40px;
				font-size: 15px;
				font-weight: bolder;
				color:#17161d;
				margin-left: 5px;
			}
			.safeguardRight{
				width: 14px;
				height: 14px;
				float: right;
				margin-right: 10px;
				margin-top:13px ;
			}
			.safeguardInfo{
				width: auto;
				float: right;
				height: 40px;
				font-size: 14px;
				line-height: 40px;
				margin-right: 1px;
				color: #565c5e;
			}
		}
		.recommendBox{
			margin-top: 15px;
			width: 100%;
			height: 216px;
			float: left;
			border-top: 1rpx solid #eee;
			.scroll-view_H {
				float: left;
				height: 175px;
				white-space: nowrap;
				width: 100%;
				.commodityItem{
					display: inline-block;
					width: 29%;
					height: 170px;
					margin-right: 8px;
					border-radius: 5px;
					overflow: hidden;
					image{
						width: 100%;
						height: 120px;
						float: left;
					}
					text{
						float: left;
						width: 100%;
						padding: 0px 3px;
						height: 25px;
						line-height: 25px;
						font-size: 15px;
						margin-top: 3px;
						color: #282828;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}
					.priceFormat{
						width: auto;
						float: left;
						height: 15px;
						line-height: 15px;
						font-weight: bold;
						color: #E93323;
					}
				}
			}
			.recommendTop{
				width: 100%;
				height: 30px;
				margin-top: 8px;
				margin-bottom: 8px;
				float: left;
				text{
					float: left;
					height: 30px;
					line-height: 30px;
					font-size: 17px;
					font-weight: bold;
				}
				.tip{
					width: auto;
					height: 100%;
					line-height: 30px;
					font-size: 15px;
					float: right;
					margin-right: 3px;
					color: rgb(156,156,156);
					font-weight: 400;
				}
				image{
					width: 14px;
					height: 14px;
					float: right;
					margin-top:8px ;
				}
			}
		}
	}
</style>